/*
 * XML Type:  EmailMessageSetV1
 * Namespace: http://ofx.net/types/2003/04
 * Java type: net.ofx.types.x2003.x04.EmailMessageSetV1
 *
 * Automatically generated - do not modify.
 */
package net.ofx.types.x2003.x04.impl;
/**
 * An XML EmailMessageSetV1(@http://ofx.net/types/2003/04).
 *
 * This is a complex type.
 */
public class EmailMessageSetV1Impl extends net.ofx.types.x2003.x04.impl.AbstractMessageSetVersionImpl implements net.ofx.types.x2003.x04.EmailMessageSetV1
{
    
    public EmailMessageSetV1Impl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName MAILSUP$0 = 
        new javax.xml.namespace.QName("", "MAILSUP");
    private static final javax.xml.namespace.QName GETMIMESUP$2 = 
        new javax.xml.namespace.QName("", "GETMIMESUP");
    
    
    /**
     * Gets the "MAILSUP" element
     */
    public net.ofx.types.x2003.x04.BooleanType.Enum getMAILSUP()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(MAILSUP$0, 0);
            if (target == null)
            {
                return null;
            }
            return (net.ofx.types.x2003.x04.BooleanType.Enum)target.getEnumValue();
        }
    }
    
    /**
     * Gets (as xml) the "MAILSUP" element
     */
    public net.ofx.types.x2003.x04.BooleanType xgetMAILSUP()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.BooleanType target = null;
            target = (net.ofx.types.x2003.x04.BooleanType)get_store().find_element_user(MAILSUP$0, 0);
            return target;
        }
    }
    
    /**
     * Sets the "MAILSUP" element
     */
    public void setMAILSUP(net.ofx.types.x2003.x04.BooleanType.Enum mailsup)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(MAILSUP$0, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(MAILSUP$0);
            }
            target.setEnumValue(mailsup);
        }
    }
    
    /**
     * Sets (as xml) the "MAILSUP" element
     */
    public void xsetMAILSUP(net.ofx.types.x2003.x04.BooleanType mailsup)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.BooleanType target = null;
            target = (net.ofx.types.x2003.x04.BooleanType)get_store().find_element_user(MAILSUP$0, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.BooleanType)get_store().add_element_user(MAILSUP$0);
            }
            target.set(mailsup);
        }
    }
    
    /**
     * Gets the "GETMIMESUP" element
     */
    public net.ofx.types.x2003.x04.BooleanType.Enum getGETMIMESUP()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(GETMIMESUP$2, 0);
            if (target == null)
            {
                return null;
            }
            return (net.ofx.types.x2003.x04.BooleanType.Enum)target.getEnumValue();
        }
    }
    
    /**
     * Gets (as xml) the "GETMIMESUP" element
     */
    public net.ofx.types.x2003.x04.BooleanType xgetGETMIMESUP()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.BooleanType target = null;
            target = (net.ofx.types.x2003.x04.BooleanType)get_store().find_element_user(GETMIMESUP$2, 0);
            return target;
        }
    }
    
    /**
     * Sets the "GETMIMESUP" element
     */
    public void setGETMIMESUP(net.ofx.types.x2003.x04.BooleanType.Enum getmimesup)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(GETMIMESUP$2, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(GETMIMESUP$2);
            }
            target.setEnumValue(getmimesup);
        }
    }
    
    /**
     * Sets (as xml) the "GETMIMESUP" element
     */
    public void xsetGETMIMESUP(net.ofx.types.x2003.x04.BooleanType getmimesup)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.BooleanType target = null;
            target = (net.ofx.types.x2003.x04.BooleanType)get_store().find_element_user(GETMIMESUP$2, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.BooleanType)get_store().add_element_user(GETMIMESUP$2);
            }
            target.set(getmimesup);
        }
    }
}
